package com.nwpu.coursesupport.service;

import com.nwpu.coursesupport.criteria.LessonResourceSearchCriteria;
import com.nwpu.coursesupport.entity.bean.JSONResult;
import com.nwpu.coursesupport.exception.BatchResourceAssignmentException;
import com.nwpu.coursesupport.service.param.IDListParam;
import com.nwpu.coursesupport.service.param.IDParam;
import com.nwpu.coursesupport.service.param.LessonResourceServiceParam;

public interface LessonResourceService {

	public JSONResult assignRecord(IDParam p) throws Exception;
	
	public JSONResult batchCreate(LessonResourceServiceParam.BatchCreateParam p) throws BatchResourceAssignmentException;
	
	public JSONResult create(LessonResourceServiceParam.CreateParam p) throws Exception;
	
	public JSONResult assignRecordsInLessonSView(LessonResourceSearchCriteria sc) throws Exception ;
	
	public JSONResult assignRecordsInLessonTView(LessonResourceSearchCriteria sc) throws Exception ;
	
	public JSONResult remove(IDParam p) throws Exception ;

	public JSONResult removeAll(IDListParam p) throws Exception ;
	
	public JSONResult getUnAssignLesson(LessonResourceServiceParam.UnAssignLessonParam p) throws Exception;
	
}
